<?php
error_reporting(0);
$q=$_GET["q"];
$pdo=new PDO('mysql:host=localhost;dbname=db_pet','root','playboy');	
		$sql5="select email from projector";
		$stmt5=$pdo->prepare($sql5);
		$stmt5->execute();
		while($row5=$stmt5->fetch()){
			$mail[]=$row5['email'];
			
		}	
if(!in_array($q,$mail)){
	$response="该邮箱未被注册";
}	

echo $response;
		?>
		
